9abac0d67a329a9d39b0b313c4b0f3abfc5e3300,src/main/java/hex/gbm/GBM.java,GBMModel,score0,#number[]#number[]#,42
Before Change
if (nclasses()>1) { // classification
for(int k=0; k<p.length;k++)
sum+=(p[k]=(float)Math.exp(p[k]));
if( !Float.isInfinite(sum) ) div(p,sum);
else { // Math.exp leads to Infinities alot...
// If one of the probs was large and the others all small, the
// Math.exp shot up to infinity... and the division will bring us
After Change
float dsum=0;
for(int k=0; k<p.length;k++)
dsum+=(p[k]=(float)Math.exp(p[k]/rescale));
div(p,dsum);
} else { // regression
// do nothing for regression
}